<template>
  <div class="videocell">
    <div class="vAut">
      <img :src="item.cover.images[0]" :onerror="pic" alt="" />
      <div>{{ item.aut_name }}</div>
    </div>
    <div class="vRoom">
      <div class="text">
        黑马视频
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['item'],
  data () {
    return {
      pic:
        'this.src="' + 'https://img01.yzcdn.cn/vant/empty-image-error.png' + '"'
    }
  }
}
</script>
<style lang="less" scoped>
.videocell {
  margin-top: 5px;
  width: 100vw;
  padding: 0%12px;
  .vAut {
    height: 50px;
    display: flex;
    img {
      margin-top: 5px;
      width: 40px;
      height: 40px;
      border-radius: 20px;
      margin-right: 10px;
    }
    div {
      padding-left: 10px;
      height: 50px;
      font-size: 20px;
      line-height: 50px;
    }
  }
  .vRoom {
    height: 200px;
    color: #fff;
    background-color: #3e9df8;
    margin: 5px auto;
    line-height: 200px;
    font-size: 30px;
    border-radius: 4px;
    text-align: center;
  }
}
</style>
